<template>
  <div class="series">
    <all-nav />
    <!-- 风格藏馆 -->
    <div class="fgcg">
      <div>风格藏馆</div>
      <ul>
        <li :key="item.id" v-for="(item,index) in tabList" :class="tabIndex==index?'xzla':''" @click="handleTabChange(index)">{{ item.name }}</li>
      </ul>
    </div>

    <div class="content">
      <ul>
        <li class="list" v-for="(itme, index) in 9" :key="index" @click="skipDetail">
          <!-- <div class="top">
            <div class="new">
              <i class="iconfont icon-double-circle"></i>
            </div>
            <div class="date">2023-6</div>
            <div class="d">
              <i class="el-icon-error"></i>
            </div>
          </div> -->
          <div class="img">
            <el-image :src="urls" lazy alt=""></el-image>
              <div id="mask1" style="color: #fff; font-size: 13px">
                查看详情
              </div>
          </div>
          <div class="t1">&lt; 简爱 &gt;</div>
          <div class="t2">STLEY：广州&bull;天河婚纱照个人</div>
        </li>
      </ul>
    </div>

    <Footers/>
  </div>
</template>

<script>
import AllNav from "../components/AllNav.vue";
import Footers from "../components/Footers.vue";

export default {
  components: { AllNav, Footers },
  data(){
    return{
      urls: 'https://fuss10.elemecdn.com/3/28/bbf893f792f03a54408b3b7a7ebf0jpeg.jpeg',
      tabList:[{
        id:1,
        name:'全部展示'
      },
      {
        id:2,
        name:'时尚都市'
      },
      {
        id:3,
        name:'唯美韩式'
      },
      {
        id:4,
        name:'国风系列'
      },
      {
        id:5,
        name:'时尚都市'
      },
      {
        id:7,
        name:'唯美韩式'
      },
      {
        id:8,
        name:'国风系列'
      },
    ],
    tabIndex:0,
    }
  },
  methods:{
    handleTabChange(index){
      this.tabIndex = index;
    },
    skipDetail() {
      this.$router.push({ path: "/view_brief" });
    },
  }
};
</script>

<style scoped lang="less">
/deep/ .el-image {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.series {
  .fgcg {
    width: var(--contentWidth);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    background: #fff;
    > div {
      width: 100px;
      height: 29px;
      font-size: 20px;
      margin-left: 40px;
      margin-top: 17px;
      // font-weight: bold;
    }
    ul {
      // width: 1250px;
      height: 32px;
      line-height: 32px;
      display: flex;
      margin-right: 40px;
      margin-top: 15px;
      border-radius: 4px;
      background-color: rgba(255, 255, 255, 1);
      border: 1px solid rgba(0, 184, 144, 1);
      li {
        width: 150px;
        text-align: center;
        border-right: 1px solid rgba(0, 184, 144, 1);
        cursor: pointer;
        &:nth-last-child(1) {
          border: none;
        }
        &.xzla {
          background: rgba(0, 184, 144, 1);
          color: #fff;
        }
      }
    }
  }

  .content {
    width: var(--contentWidth);
    margin: 0 auto;
    padding: 20px 7px;
    background: #fff;
    ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      .list:hover #mask1 {
          opacity: 1;
        }
      li {
        width: 469px;
        height: 350px;
        background-color: rgba(249, 249, 249, 1);
        cursor: pointer;
        margin-bottom: 25px;
        &:hover{
            box-shadow: 0 0 8px #ccc;
            border-radius: 5px;
          }
        .top {
          width: 100%;
          height: 50px;
          background-color: rgba(238, 238, 238, 1);
          line-height: 20px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 0 10px;
          .new {
            transform: translateY(3px);
            i {
              font-size: 24px;
              color: #FF4150;
            }
          }
          .date {
            font-size: 18px;
          }
          .d {
            i {
              font-size: 26px;
              color: #415058;
            }
          }
        }
        .img {
            position: relative;
            width: 449px;
            height: 230px;
            margin: auto;
            margin-top: 10px;
          }
          #mask1 {
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
            opacity: 0;
            text-align: center;
            line-height: 230px;
            z-index: 7;
            letter-spacing: 2px;
          }
        .t1 {
          font-size: 20px;
          color: rgba(16, 16, 16, 1);
          text-align: center;
          margin-top: 35px;
        }
        .t2 {
          font-size: 14px;
          color: rgba(206, 206, 206, 1);
          text-align: center;
          margin-top: 8px;
        }
      }
    }
  }
}
</style>